<cfoutput>
	<cfset isDeveloper = IsDefined("SESSION.user.last_name") AND ListFindNoCase("chiu,tan,smith", SESSION.user.last_name)>
	<cfif NOT isAjax()>
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
				<meta name="keywords" content="ShowMeSmart,Show Me Smart" />
				<meta name="viewport" content="width=device-width, initial-scale=1.0">
				<title>ShowMeSMART! - #titleize(PARAMS.action)#</title>
				#styleLESSLinkTag("bootstrap.showMeSmart")#
				#styleSheetLinkTag(
					"jquery.ShowMeSmart,validationEngine.jquery,jquery.multiselect,tipsy,bootstrap-datepicker"
				)#
				#javascriptIncludeTag(
					"jquery-1.7.1.min,jqueryUI-1.8.16,bootstrap,jquery.validationEngine,jquery.validationEngine-en,less," &
					"swfobject,jquery.multiselect,jquery.tipsy,bootstrap-datepicker"
				)#
			</head>
			<body>
				<!--- <div class="container"> --->
				<div class="navbar navbar-fixed-top">
					<!--- Navigation Bar ~ Start --->
					<div class="navbar-inner">
						<div class="container-fluid">
							<a class="brand">#imageTag('ShowMeSmart-1.3.png')#</a>
							<!--- ShowMeSmart: Sections --->
						    <ul class="nav pull-left">
						    	<cfloop array="#navigation#" index="tab">
							    	<li <cfif StructKeyExists(tab, PARAMS.action) AND isArray(tab[PARAMS.action])>class="active"</cfif>>
							    		<a href="#URLFor(controller='main', action=StructKeyList(tab))#">#Titleize(StructKeyList(tab))#</a>
							    	</li>
							 	</cfloop>
							</ul>
							<ul class="nav pull-right">
								<li <cfif PARAMS.action IS "login">class="active"</cfif>>
									<a href="#URLFor(controller='main', action='login')#">Login</a>
								</li>
								<li class="divider-vertical"></li>
								<!--- Tab is only viewable to EMPLOYEES --->
								<cfif IsDefined("SESSION.user.login_type") AND SESSION.user.login_type IS "E">
									<li <cfif PARAMS.action IS "admin" OR PARAMS.controller IS "admin">class="active"</cfif>>
										<a href="#URLFor(controller='main', action='admin')#">Admin</a>
									</li>
								</cfif>
								<!--- Tab is only viewable to PARENTS --->
								<cfif (IsDefined("SESSION.user.login_type") AND PARAMS.action IS "profile") OR isDeveloper>
									<li <cfif PARAMS.action IS "profile">class="active"</cfif>>
										<a href="#URLFor(controller='main', action='profile')#">Profile</a>
									</li>
								</cfif>
							</ul>
						</div>
					</div>
					<!--- Navigation Bar ~ End --->
					<div class="container">
						<div class="row">
							<div class="span12 fixedNav">
								<cfif ListFindNoCase("profile,admin", PARAMS.action) OR PARAMS.controller IS "admin">
									<cfset style = ' style="border-bottom:1px solid ##808080;background-color:##EEEEEE;"'>
								<cfelse>
									<cfset style = ' style="background-color:##EEEEEE;"'>
								</cfif>
								<div class="page-header"#style#>
									<h1>
										<cfif PARAMS.action IS "profile">
											#student.info.first_name# #student.info.last_name#'s
										</cfif>
										<cfif PARAMS.action IS NOT "home">
											#Titleize(PARAMS.action)#
										</cfif>
									</h1>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!--- Logo Bar --->
				<div class="container" style="overflow:visible;">
					<div class="row topOffset1">
						<div class="span12">
							<cfif NOT ListFindNoCase("profile,admin", PARAMS.action) AND PARAMS.controller IS NOT "admin">
								<cfif PARAMS.action IS "home">
									<cfset rootPath = (CGI.server_name CONTAINS "localhost") ? "/ShowMeSmart/" : "/">
									<table class="table table-bordered no-hover logo" style="width:100%;">
										<tr>
											<td width="225px"  style="height:250px!important;padding:0px!important;"class="center-center">
												<div id="flashContent1" root="#rootPath#"></div>
											</td>
											<td valign="middle"  style="height:250px!important;padding:0px!important;" class="center-center">
												#imageTag('ShowMeSmart-1.1.png')#
											</td>
										</tr>
								    </table>
	    						<cfelse>
									<table class="table table-bordered no-hover logo" align="center" width="100%">
										<tr>
											<td width="90px"  style="height:100px;" class="center-center" >
												#imageTag('ShowMeSmart-2.2.png')#
											</td>
											<td valign="middle" style="height:100px" class="center-center">
												#imageTag('ShowMeSmart-1.2.png')#
											</td>
										</tr>
						    		</table>
						    	</cfif>
						    </cfif>
						    <div class="row topOffset2">
								<cfif flashKeyExists("success")>
									#flashMessages(keys="success", class="alert-message success span12")#
								</cfif>
								<cfif flashKeyExists("error")>
									#flashMessages(keys="error", class="alert-message error span12")#
								</cfif>
							</div>
							#includeContent()#
						</div>
					</div>
				</div>
				#javascriptIncludeTag('showMeSmart')#
			</body>
		</html>
	<cfelse>
		#includeContent()#
	</cfif>
</cfoutput>
